package com.cm.scan.destory;

import com.cm.summer.annotion.Bean;
import com.cm.summer.annotion.Configuration;
import com.cm.summer.annotion.Value;

/**
 * @author cm
 * 2025/1/7
 */
@Configuration
public class SpecifyDestroyConfiguration {
    @Bean(destroyMethod = "destroy")
    SpecifyDestroyBean createSpecifyDestroyBean(@Value("${app.title}") String appTitle) {
        return new SpecifyDestroyBean(appTitle);
    }
}
